
import {ACTION_PROJECT} from './action'
import initState from './state'


export default (state = initState.project,action) => {
    switch(action.type){
        case ACTION_PROJECT.CHANGE_STATE:
            const {searchType,searchStartTime,searchEndTime,searchValue} = action.payload;
            return {
                searchType:searchType,
                search_start_time:searchStartTime,
                search_end_time:searchEndTime,
                search_value: searchValue
            };
        default:
            return state;
    }
}